package com.shycloud.mido.opter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author nianhua.jiang
 */
@Data
@TableName(value = "stock_device_info")
public class StockDeviceInfo {

	@TableId(value = "udid", type = IdType.INPUT)
	private String udid;
	/** 订单编号 */
	@TableField(value = "order_no")
	private Long orderNo;
	/** 设备蓝牙码 */
	@TableField(value = "bluetooth_code")
	private String bluetoothCode;
	/** 运营商ID */
	@TableField(value = "opt_id")
	private Integer optId;
	/** 机构ID */
	@TableField(value = "org_id")
	private Integer orgId;
	/** 经销商ID */
	@TableField(value = "dist_id")
	private Integer distId;
	/** 类型 1-租赁 2-永久 */
	@TableField(value = "`type`")
	private String type;
	/** 商品ID */
	@TableField(value = "goods_id")
	private Integer goodsId;
	/** 发货状态 0-未发货 1-发货 2-作废 */
	@TableField(value = "status")
	private String status;
	/** (1未激活2空闲中3体验中4租赁中5已销售) */
	@TableField(value = "active_status")
	private String activeStatus;
	/** 首次激活时间 */
	@TableField(value = "active_create_time")
	private LocalDateTime activeCreateTime;
	/** 激活更新时间 */
	@TableField(value = "active_update_time")
	private LocalDateTime activeUpdateTime;
	/** 生成人 */
	@TableField(value = "gen_username")
	private String genUsername;

	public static final String COL_UDID = "udid";

	public static final String COL_ORDER_NO = "order_no";

	public static final String COL_BLUETOOTH_CODE = "bluetooth_code";

	public static final String COL_OPT_ID = "opt_id";

	public static final String COL_TYPE = "type";

	public static final String COL_GOODS_ID = "goods_id";
}